import request from '../utils/request'

// 提交
export const CreateTask = (data) => {
    return request('/api/hse/addHseAuditTask', {
      method: 'post', 
      data
    })
  }

//   查询
export const GetTask = (params) => {
    return request('/api/hse/queryHseAuditTask', {
      params
    })
  }

// 修改
export const AlterTask = (data) => {
    return request('/api/hse/updateHseAuditTask', {
      method: 'post', 
      data
    })
  }

  // 删除
  export const DeleteTask = (params) => { 
    return request(`/api/hse/deleteHseAuditTask`, {
      method: 'delete',
      params
    })
  }

// 结束任务
export const FinishTask = (params) => {
  return request('/api/hse/finishHseAuditTask', {
    params
  })
}